package com.leng.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leng.entity.Department;
import com.leng.mapper.DepartmentMapper;
import com.leng.service.DepartmentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author leng
 * @since 2022-08-21
 */
@Service
public class DepartmentServiceImp extends ServiceImpl<DepartmentMapper, Department> implements DepartmentService {
    @Override
    public List<Department> getDepartmentNameAndCount() {
        return this.baseMapper.getDepartmentNameAndCount();
    }
}
